<?php
require_once 'class.compliance.php';
MYTCONN();
$alert = '';
    $EditAmlDocument = new Compliance();
if (isset($_GET['AMHDOC_ID'])) {
    if ($EditAmlDocument->AmlDocumentDelete($_GET['AMHDOC_ID']) == true) {
        $alert = 'alert(\'Removido\');';
    }
} elseif (isset($_POST['OBJCT_TYPE'])) {
    if ($EditAmlDocument->AmlDocumentEdit($_POST['OBJCT_ID'], $_POST['OBJCT_TYPE']) == true) {

    }
} 
?>
<script charset="utf-8" type="text/javascript">
    <?=$alert;?>
    document.MQuery.action='_response/call.php?get=Compliance/amh_doclist&AMHID=<?php echo $_POST['amh_ID']; ?>';
    subform('MQuery','DocView');
</script>